package com.kylin.user.api.dto.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 创建用户地址请求信息
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年12月19日 16:45
 */
@Data
@NoArgsConstructor
@ApiModel(value = "创建用户地址参数")
public final class CreateUserAddressReqDTO implements Serializable {

    @NotNull
    @NonNull
    @ApiModelProperty(value = "收货人")
    @JsonProperty("userName")
    private String consignee;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "联系电话")
    @JsonProperty("telNumber")
    private String phone;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "邮编")
    @JsonProperty("postalCode")
    private String postCode;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "省/自治区")
    @JsonProperty("provinceName")
    private String province;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "市")
    @JsonProperty("cityName")
    private String city;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "区/县")
    @JsonProperty("countyName")
    private String county;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "详细地址")
    @JsonProperty("detailInfo")
    private String address;
}
